from django import forms
from common.utils.custom_form_field import DateTimeStringField


class ProductProfitAnalysisForm(forms.Form):
    target_time = DateTimeStringField(to_date=True, to_str=False)
    interval_type = forms.CharField()
    to_export_file = forms.IntegerField(required=False)


class UserAnalysisForm(forms.Form):
    target_time = DateTimeStringField(to_date=True, to_str=False)
    interval_type = forms.CharField()
    report_type = forms.CharField()
    to_export_file = forms.IntegerField(required=False)


class BetAnalysisForm(forms.Form):
    target_time = DateTimeStringField(to_date=True, to_str=False)
    interval_type = forms.CharField()
    report_type = forms.CharField()


class ChannelAnalysisForm(forms.Form):
    target_time = DateTimeStringField(to_date=True, to_str=False)
    interval_type = forms.CharField()
    specific_chn = forms.CharField(required=False)
    to_export_file = forms.IntegerField(required=False)


class RechargeAnalysisForm(forms.Form):
    target_time = DateTimeStringField(to_date=True, to_str=False)
    interval_type = forms.CharField()
    report_type = forms.CharField()
    to_export_file = forms.IntegerField(required=False)


class WithdrawAnalysisForm(forms.Form):
    target_time = DateTimeStringField(to_date=True, to_str=False)
    interval_type = forms.CharField()
    to_export_file = forms.IntegerField(required=False)
